scrolledwindow: Always keep the main child first
authorTimm Bäder <mail@baedert.org>
Thu, 7 May 2020 17:00:30 +0000 (19:00 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 10 May 2020 07:30:15 +0000 (09:30 +0200)
Otherwise we can't pick the scrollbars, which are allocated behind it.

gtk/gtkscrolledwindow.c

index 6f6af32a8335efe4584b42a53ed7755cfa714913..a778502245e3b36004c61972c138f4378e7d25a9 100644 (file)
@@ -4213,7 +4213,7 @@ gtk_scrolled_window_set_child (GtkScrolledWindow *scrolled_window,
         }
 
       priv->child = scrollable_child;
-      gtk_widget_set_parent (scrollable_child, GTK_WIDGET (scrolled_window));
+      gtk_widget_insert_after (scrollable_child, GTK_WIDGET (scrolled_window), NULL);
 
       g_object_set (scrollable_child,
                     "hadjustment", hadj,